import { network } from '@/utils';
import { PartTimeWageListParams } from './data';

import { charges } from '../../../../../config/Apis';

export async function queryPartTimeWageList(params: PartTimeWageListParams) {
  return network.get(charges.parttime_list, {
    params,
  });
}

export async function operSaveOrUpdate(params: {id: number}) {
  const resquest = params.id
    ? network.put(charges.parttime, { data: params })
    : network.post(charges.parttime, { data: params });
  return resquest;
}
